<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        li{
            list-style: none;
            float: left;

            background: #3071f2;
            width: 100px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            font-size: 16px;
        }
        li a:link, li a:visited{
            color: white;
            text-decoration: none;
        }
        li a:hover, li a:active{
            font-weight: bold;
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <ul>
        <li><a href="#">要闻</a></li>
        <li><a href="#">热问</a></li>
        <li><a href="#">财经</a></li>
        <li><a href="#">科技</a></li>
        <li><a href="#">娱乐</a></li>
        <li><a href="#">综艺</a></li>
        <li><a href="#">体育</a></li>
        <li><a href="#">军事</a></li>
    </ul>
</body>
</html>